<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      li {
        margin: 20px 0px;
        cursor: pointer;
      }
      .active {
        background-color: aqua;
      }
    </style>
  </head>
  <body>
    <ul>
      <li>万达十堰市数据库的环境卡号</li>
      <li>襄樊十堰市数据库的环境卡号</li>
      <li>武汉十堰市数据库的环境卡号</li>
      <li>宜昌十堰市数据库的环境卡号</li>
      <li>上海十堰市数据库的环境卡号</li>
      <li>广州十堰市数据库的环境卡号</li>
    </ul>
    <script>
      let ul = document.querySelector("ul");

      ul.addEventListener("click", function (e) {
      
       
         e.target.classList.add("active");
      });
    </script>
  </body>
</html>
